package config

import (
	"github.com/zeromicro/go-zero/core/stores/redis"
	"github.com/zeromicro/go-zero/rest"
)

type Config struct {
	rest.RestConf
	DataBase DataBase
	Auth     Auth
	Redis    redis.RedisConf
}

type DataBase struct {
	DataSource        string
	ConnectionTimeout int
	MaxIdleConns      int
	MaxOpenConns      int
}

type Auth struct {
	AccessSecret string
	Expire       int64
}
